Next | Prev | Up | Top | Contents | Index
Specifying Arrays for Different Kinds of Data
This section provides information about specifying arrays for vertices. A full description for normals, colors, color indexes, texture coordinates, and edge flags is not included; see the reference pages for more information.
- glVertexPointerEXT() specifies the location and data format of an array of vertex coordinates.
- pointer specifies a pointer to the first coordinate of the first vertex in the array.
- type specifies the data type of each coordinate in the array, and must be one of GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE_EXT, implying OpenGL data types short, int, float, and double, respectively.
- size specifies the number of coordinates per vertex, and must be 2, 3, or 4.
- stride specifies the byte offset between pointers to consecutive vertexes. If stride is zero, the vertex data are tightly packed in the array.
- count specifies the number of vertexes, counting from the first, that are static.
- glNormalPointerEXT() specifies the location and data format of an array of normals.
- glColorPointerEXT() specifies the location and data format of an array of color components.
- glIndexPointerEXT() specifies the location and data format of an array of color indexes.
- glTexCoordPointerEXT() specifies the location and data format of an array of texture coordinates.
- glEdgeFlagPointerEXT() specifies the location and data format of an array of boolean edge flags.
Next | Prev | Up | Top | Contents | Index